﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Incubator
{
    public partial class login : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["bLoggedIn"] == null)
                Session["bLoggedIn"] = false;

           
        }
        protected void Button1_Click1(object sender, EventArgs e)
        {
            Session["bLoggedIn"] = true;

            if ((bool)Session["bLoggedIn"] == false)
            {
                this.logouttable.Visible = false;
                this.logintable.Visible = true;
            }
            else
            {
                this.logouttable.Visible = true;
                this.logintable.Visible = false;
            }
        }
       

        protected void Button2_Click(object sender, EventArgs e)
        {
            Session["bLoggedIn"] = false;
            
                this.logouttable.Visible = false;
                this.logintable.Visible = true;
 
        }

        

       
    }
}